package com.ExcelServer.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 业绩的动态表格控制器
 * @TableName performance_trends
 */
@TableName(value ="performance_trends")
@Data
public class PerformanceTrends implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * mysql表名称
     */
    private String mTableName;

    /**
     * 真实表头与前端表头对应器
     */
    private Object property;

    /**
     * 前端表格名称
     */
    private String fTableName;

    /**
     * 表格描述
     */
    private String fDescribe;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PerformanceTrends other = (PerformanceTrends) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMTableName() == null ? other.getMTableName() == null : this.getMTableName().equals(other.getMTableName()))
            && (this.getProperty() == null ? other.getProperty() == null : this.getProperty().equals(other.getProperty()))
            && (this.getFTableName() == null ? other.getFTableName() == null : this.getFTableName().equals(other.getFTableName()))
            && (this.getFDescribe() == null ? other.getFDescribe() == null : this.getFDescribe().equals(other.getFDescribe()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMTableName() == null) ? 0 : getMTableName().hashCode());
        result = prime * result + ((getProperty() == null) ? 0 : getProperty().hashCode());
        result = prime * result + ((getFTableName() == null) ? 0 : getFTableName().hashCode());
        result = prime * result + ((getFDescribe() == null) ? 0 : getFDescribe().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", mTableName=").append(mTableName);
        sb.append(", property=").append(property);
        sb.append(", fTableName=").append(fTableName);
        sb.append(", fDescribe=").append(fDescribe);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}